import React, { Component } from 'react'
import { Consumer } from '../utils/context'

export default class Son extends Component {
  render() {
    return (
      <div>
        <Consumer>
          {
            (data) => {
              console.log(data);
              return <h6>我是子组件--{data }</h6>
            }
          }

        </Consumer>


      </div>
    )
  }
}
